package com.manhanlou.domain;

import java.util.Date;

/**
 * 这里是一个javabean可以和多张表联合
 *
 * @author wty
 * @date 2022/11/9 22:41
 */
public class MultiTableBean {
    private Integer id;
    private Integer menuId;
    private Integer nums;
    private Double money;
    private Integer diningTableId;
    private String state;
    /**
     * 来自diningTable 的菜品名,菜品价格
     */
    private String name;
    private Double price;

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNums() {
        return nums;
    }

    public void setNums(Integer nums) {
        this.nums = nums;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getDiningTableId() {
        return diningTableId;
    }

    public void setDiningTableId(Integer diningTableId) {
        this.diningTableId = diningTableId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public MultiTableBean() {
    }

    public MultiTableBean(Integer id, Integer menuId, String name, Integer nums, Double money, Integer diningTableId, String state, Double price) {
        this.id = id;
        this.menuId = menuId;
        this.name = name;
        this.nums = nums;
        this.money = money;
        this.diningTableId = diningTableId;
        this.state = state;
        this.price = price;
    }

    @Override
    public String toString() {
        return "MultiTableBean{" +
                "id=" + id +
                ", menuId=" + menuId +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", nums=" + nums +
                ", money=" + money +
                ", diningTableId=" + diningTableId +
                ", state='" + state + '\'' +
                '}';
    }
}
